<%@ page contentType="text/html;charset=UTF-8" trimDirectiveWhitespaces="true"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<sys:header title="用户基本信息修改" extLibs="validate"/>
<div class="portlet box ${boxStyleColor} autoHeight">
	<div class="portlet-title">
		<div class="caption"><i class="fa fa-coffee"></i>用户基本信息修改</div>
	</div>
	<div class="portlet-body form">
		<form:form id="inputForm" modelAttribute="user" action="${ctx}/sys/user/saveBasicMsg" method="post" class="form-horizontal" enctype="multipart/form-data" >
			<form:hidden path="id"/>
			<sys:message content="${message}"/>
			<div class="form-body">
				<h4 class="form-section ">基本信息</h4>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="col-sm-4  control-label">账号：</label>
							<div class="col-sm-8">
								<form:input path="loginName" htmlEscape="false" disabled="true" class="form-control abc required"/>
							</div>
						</div>
					</div>
					<!--/span-->
					<div class="col-xs-6">
						<div class="form-group">
							<label class="col-sm-4 control-label">昵称：</label>
							<div class="col-sm-8">
								<form:input path="nickname" htmlEscape="false" placeholder="请输入昵称" maxlength="100" class="form-control required"/>
							</div>
						</div>
					</div>
					<!--/span-->
				</div>
				<!--/row-->
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="col-sm-4 control-label">手机：</label>
							<div class="col-sm-8">
								<div class="input-group">
									<span class="input-group-addon">
									<i class="fa fa-mobile-phone"></i>
									</span>
									<form:input path="mobile" htmlEscape="false" placeholder="请输入手机" maxlength="100" class="form-control required mobile"/>
								</div>
							</div>
						</div>
					</div>
					<!--/span-->
					<div class="col-xs-6">
						<div class="form-group">
							<label class="col-sm-4 control-label">电话：</label>
							<div class="col-sm-8">
								<div class="input-group">
									<span class="input-group-addon">
									<i class="fa fa-phone"></i>
									</span>
									<form:input path="phone" htmlEscape="false" placeholder="请输入电话" maxlength="100" class="form-control required simplePhone"/>
								</div>
							</div>
						</div>
					</div>
					<!--/span-->
				</div>
				<!--/row-->
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="col-sm-4 control-label">邮箱：</label>
							<div class="col-sm-8">
								<div class="input-group">
									<span class="input-group-addon">
									<i class="fa fa-envelope"></i>
									</span>
									<form:input path="email" htmlEscape="false" placeholder="请输入邮箱" maxlength="100" class="form-control required email"/>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-6">
						<div class="form-group">
							<label class="col-sm-4 control-label">头像：</label>
							<div class="col-sm-8">
								<div class="input-group">
									<form:hidden id="photo" path="photo" class="form-control required"/>
									<sys:ckfinder input="photo" type="images" uploadPath="/exam/exam" selectMultiple="false"></sys:ckfinder>
								</div>
							</div>
						</div>
					</div>
				</div>
				<!--/row-->
			</div>
			<div class="form-actions fluid">
				<div class="row">
					<div class="col-sm-offset-2 col-sm-10">
						<shiro:hasPermission name="sys:post:edit">
							<button id="btnSubmit" type="submit" class="btn btn-primary"><i class="fa fa-check"></i> 保 存</button>&nbsp;
						</shiro:hasPermission>
						<button id="btnCancel" type="button" class="btn default" onclick="closeCurrentTabPage('${param.parentTabPageId}')"><i class="fa fa-reply-all"></i> 关 闭</button>
					</div>
				</div>
			</div>
		</form:form>
	</div>
</div>
<sys:footer extLibs="validate"/>
<%@include file="/WEB-INF/views/include/treeview.jsp" %>
<script type="text/javascript">
	$(document).ready(function() {
		
		$("#nickname").focus();
		$("#inputForm").validate({
			$('button').css('display:none;');
			loading('正在提交，请稍后。。。。。。');
			$(form).submit();
		});
		
	});
</script>